<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>${page.title}</title>
</head>
<body>
	<input id="pageId" name="pageId" type="hidden" value="${page.id}">
	<div>
		<form id="${page.name }" class="page">
			<table>
				<c:forEach var="field" items="${ page.formFields }" varStatus="status">
					<c:if test="${status.first or field.fullLine or status.count % 2 eq 0}">
						<tr>
					</c:if>
						<c:if test="${field.hidden }">
							<input id="${field.name }" name="${field.name }" type="hidden" value="">
						</c:if>
						<th>
							${field.display }
						</th>
						<td ${field.fullLine ? "colspan=\"3\"" : ""}>
							<div id="${field.name }_view" fieldName="${field.name}" fieldType="${field.component }"></div>
						</td>
					<c:if test="${status.last or field.fullLine or (status.count + 1) % 2 eq 0}">
						</tr>
					</c:if>
				</c:forEach>
	        </table>
		</form>
	</div>
</body>
<script type="text/javascript">

</script>
</html>